diff options
| author | Sebastien Castiel <sebastien@castiel.me> | 2024-01-24 09:50:37 -0500 |
|---|---|---|
| committer | Sebastien Castiel <sebastien@castiel.me> | 2024-01-24 09:50:37 -0500 |
| commit | 7956156d705297ba7c372577bb19c09517bbd444 (patch) | |
| tree | 5920890307cba2698ebf30fd4381fc26d3492d76 /src/app/groups/[groupId]/layout.tsx | |
| parent | 2f58e466da05a058096a2bdc7ee581dbebe7a508 (diff) | |
Upgrade Next.js to 14.1.0
Diffstat (limited to 'src/app/groups/[groupId]/layout.tsx')
| -rw-r--r-- | src/app/groups/[groupId]/layout.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/app/groups/[groupId]/layout.tsx b/src/app/groups/[groupId]/layout.tsx index 3e649e7..fc76b61 100644 --- a/src/app/groups/[groupId]/layout.tsx +++ b/src/app/groups/[groupId]/layout.tsx @@ -5,7 +5,7 @@ import { getGroup } from '@/lib/api' import { Metadata } from 'next' import Link from 'next/link' import { notFound } from 'next/navigation' -import { PropsWithChildren } from 'react' +import { PropsWithChildren, Suspense } from 'react' type Props = { params: { @@ -41,7 +41,9 @@ export default async function GroupLayout({ </h1> <div className="flex gap-2 justify-between"> - <GroupTabs groupId={groupId} /> + <Suspense> + <GroupTabs groupId={groupId} /> + </Suspense> <ShareButton group={group} /> </div> </div> |
